package com.hfzy.ihk.common.util.http;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by YANFA on 2017/12/29.
 */
public class HttpHelper {

    public static boolean isAjaxRequest(HttpServletRequest request) {
        String header = request.getHeader("X-Requested-With");
        boolean isAjax = "XMLHttpRequest".equals(header) ? true : false;
        return isAjax;
    }
}
